package net.lainiao.framework.control;

import net.lainiao.framework.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by Administrator on 2016/11/21.
 */
@Controller
@RequestMapping("/test")
public class TestControl {

    @Autowired
    TestService testService;

    @RequestMapping("/version.do")
    public String getVersion(ModelMap modelMap){
        modelMap.put("version",testService.getMySqlVersion());
        return "version";
    }

}
